/*整个项目中头部的样式*/
.top{
    height: 30px;
}
/*index.css*/
.basic li, .user li{
    height: 30px;
    line-height: 30px;
    float: left;
}

.collect{
    background: url("../images/star.png") no-repeat;
    width: 12px;
    height: 12px;
    display: inline-block;
}
a:hover .collect{
    background: url("../images/star-hover.png") no-repeat;
}
/*标识一个有下拉内容的li*/
.toggleli{
    position: relative;
}
/*表示一个有下拉内容的a*/
.togglea{
    display: inline-block;
    height: 30px;
    position: relative;
    z-index: 1;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    padding: 0 15px 0 14px;
}
/*表示下拉内容*/
/*获取焦点时：给当前的li添加一个类，
1、改变a标记背景色
2、把togglemenu显示出来
3、更改手机图片
*/
.togglemenu{
    display: none;   /*默认隐藏*/
    background: #fff;
    position: absolute;
    top:28px;
    left:0;
    white-space: nowrap;
    border: 2px solid #ddd;
    padding: 0 20px 10px 20px;
}
.user .togglemenu {
    right: 0;
    left: auto;
}
.togglemenu img{
    display: block;
}

.togglemenu li{
    float: none;
}

.on .togglea{
    background: #fff;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
}

.on .togglemenu{
    display: block;
}

.on .icon-phone{
    background:url("../images/sp-main.png") -334px -165px no-repeat;
}

.on .icon-tri{
    border: 4px solid transparent;
    border-bottom-color:#666;
    width: 0;
    height: 0;
    top: 8px;
    right: 5px;
}

.icon-phone{
    background:url("../images/sp-main.png") -334px -141px no-repeat;
    width: 15px;
    height: 20px;
    display: inline-block;
    position: absolute;
    top:10px;
    left: 5px;
}

.icon-tri{
    border: 4px solid transparent;
    border-top-color:#666;
    width: 0;
    height: 0;
    display: inline-block;
    position: absolute;
    top: 12px;
    right: 5px;
}

/*垂直的线条*/
.vertical-line{
    height: 12px;
    width: 1px;
    background: #ddd;
    display: inline-block;
    position: absolute;
    top: 10px;
    right: -1px;
}

/*---------------------顶部的导航   end  --------------------*/
.logo{
    height: 70px;
}

.logobox{
    width: 335px;
    height: 55px;
}

.searchbox{
    width: 488px;
    height: 70px;
}

.promise{
    width: 175px;
    height: 45px;
}

.logoimg {
    background: url("../images/sp-main.png") -258px -44px no-repeat;
    width: 85px;
    height: 55px;
    display: inline-block;
    text-indent: -9999px;
}

.logobox h2{
    margin-top: 15px;
    margin-bottom: 10px;
}

.searchbox form{
    width: 487px;
    height: 40px;
    border: 2px solid #2bb8aa;
}

.searchbox form button{
    float: right;
    background: #2bb8aa;
    height: 40px;
    width: 80px;
    color:#fff;
    text-align: center;
    border: none;
}

.searchbox form div{
    width: 62px;
    height: 40px;
    line-height: 40px;
    border-right: 1px solid #ddd;
    text-align: center;
}

.searchbox form input{
    height: 40px;
    padding-left: 20px;
    border: none;
    width: 324px;
}

.searchbox ul {
    margin-top: 10px;   
}

.searchbox li{
    float:left;
    margin:0 10px;
}

.icon-expire-big{
    width: 36px;
    height: 24px;
}

.promise a{
    float: right;
    margin: 0 5px;
}

.promise img{
    display: block;
}

/*--------------------顶部的搜索     end---------------------*/
.nav{
    height: 520px;
    /*background:blue;*/
}

.navbox{
    height: 40px;
    background: #2bb8aa;
    line-height: 40px;
}

.navbox h2{
    width: 245px;
    height: 40px;
    text-align: center;
    color: #fff;
}

.nav-right li{
    float: left;
}
/*用于包含整个列表的div*/
.catebox{
    position: relative;
}

/*下拉列表的内容*/
ul.category{
    position: absolute;
    /*background: red;*/
    width: 245px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
}
/*每一个li*/
.cateitem{
    height: 52px;
    line-height: 52px;
    border-right: 1px solid #ddd;
}

.cateitem a{
    text-decoration: none;
}
/*
对于每一个li，当鼠标获得焦点的时候，做如下事情：
1、改变li的背景色，去掉右边框
2、显示level内容。
3、把arrow-right隐藏
*/
.on{
    background: #fff;
    border-right: 1px solid transparent;/*去掉右边框*/
}

.on .level2{
    display: block;
}

.on .arrow-right{
    /*display: none;*/
    visibility: hidden;
}


.level1{
    margin-left: 20px;
    height: 51px;
    border-bottom:1px solid #ddd;
}

/*父级元素应该是整个下拉列表的内容*/
.level2{
    white-space: nowrap;
    /*width: 200px;*/
    height: 468px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    left: 245px;
    top:0px;
    position: absolute;
    display: none;
    padding-right: 20px;
}

.level2 dl{
    display: inline-block;
    margin-left: 20px;
    /*vertical-align: top;*/
}

.level2 dl dt{
    height: 52px;
    line-height: 52px;
    font-size: 16px;
}

.level2 dl dd{
    height: 25px;
    line-height: 25px;
}

.arrow-right{
    background: url("../images/arrow-right.png") no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    top:17px;

}

.nav-right li{
    margin:0 15px;
}

.nav-right li a{
    color: #fff;
}

/*--------------------顶部的搜索     end---------------------*/